package com.gjy.design.strategy.payment;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-06 11:10:50
 */
public class PaypalPaymentStrategy implements PaymentStrategy {
    private String email;
    private String password;

    public PaypalPaymentStrategy(String email, String password) {
        this.email = email;
        this.password = password;
    }

    @Override
    public boolean pay(double amount) {
        System.out.println(amount + " 元已通过PayPal支付。");
        System.out.println("PayPal账户: " + this.email);
        return true;
    }

}
